#include <tools.h>
#include "sceneobjects/sceneobject.h"
#include "global.h"

CSceneObject::CSceneObject( CMDXParticleManager *pParticleManager, ESceneObjectType eSceneObjectType, const char* strExtData ):
CSceneObjectBase( pParticleManager, eSceneObjectType, strExtData ){
    m_nGameObjectType = 2;
}
CSceneObject::~CSceneObject(){

}
bool32 CSceneObject::Init( const char* strFileName, Vector3 pPos, Vector3 pRotaion, Vector3 pScaltion, const char* strResourceSpace ){
    char _strFileName[256];
    char _strTextureDir[256];
    char _strPublicTextureDir[256];
    strncpy( m_strFileName, strFileName, 32 );

    Format( _strFileName, 256, "%s/gamespace/%s/model/%s",g_strResourceWorkPath, strResourceSpace, strFileName );
    Format( _strTextureDir, 256, "%s/gamespace/%s/modeltextures",g_strResourceWorkPath, strResourceSpace );
    Format( _strPublicTextureDir, 256, "%s/gamespace/%s/replacetexture",g_strResourceWorkPath, strResourceSpace );
    
    return CSceneObjectBase::Init( _strFileName, pPos, pRotaion, pScaltion, _strTextureDir, _strPublicTextureDir );
}
